    <style>
    input{
        margin:4px;
        padding:4px;
    }
    </style>
    <div id="formlogin">
        <form action="<?php echo base_url();?>dangnhap" method="POST">
        <fieldset>
            <legend>Đăng nhập</legend>
            <div id="forumdangnhap">
            Tên đăng nhập:
            <input type="text" name="username" value="" size="30" /><br />
            <?php echo form_error('username', '<span class="error">', '</span><br/>'); ?>
            Mật khẩu:<br />
            <input type="password" name="password" value="" size="30" /><br />
             <?php echo form_error('password', '<span class="error">', '</span>'); 
             if($this->session->userdata('loidn')){
                echo '<span class="error">'.$this->session->userdata('loidn').'</span><br/>';
                $this->session->unset_userdata('loidn');
             }
             ?> 
            <input type="submit" value="Đăng nhập" />
            <a href="">Quên mật khẩu</a>
            </div>
        </fieldset>
        </form>
    </div>

